﻿Imports System.Xml

Public Class PageColor
	Public Property PageColorOptions As PageColorOptions

	Public Property InDesignUIColorType As InDesignUIColorType

	Public Shared Function ReadXml(reader As XmlReader) As PageColor
		Dim pc As New PageColor

		If reader.HasAttributes() Then
			If Not String.IsNullOrEmpty(reader.GetAttribute("type")) AndAlso reader.GetAttribute("type") = "enumeration" Then
				pc.PageColorOptions = Parser.ParseEnum(Of PageColorOptions)(reader.ReadElementString())
			Else
				Throw New NotImplementedException()
			End If
		Else
			Throw New NotImplementedException()
		End If

		Return pc
	End Function
End Class
